<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditAuditoriaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_id}" for="id" />
                    <h:inputText id="id" value="#{auditoriaController.selected.id}" title="#{bundle.EditAuditoriaTitle_id}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_tabla}" for="tabla" />
                    <h:inputText id="tabla" value="#{auditoriaController.selected.tabla}" title="#{bundle.EditAuditoriaTitle_tabla}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_tabla}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{auditoriaController.selected.fecha}" title="#{bundle.EditAuditoriaTitle_fecha}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_fecha}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{auditoriaController.selected.valor}" title="#{bundle.EditAuditoriaTitle_valor}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_valor}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_accion}" for="accion" />
                    <h:inputText id="accion" value="#{auditoriaController.selected.accion}" title="#{bundle.EditAuditoriaTitle_accion}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_accion}"/>
                    <h:outputLabel value="#{bundle.EditAuditoriaLabel_usuarioId}" for="usuarioId" />
                    <h:selectOneMenu id="usuarioId" value="#{auditoriaController.selected.usuarioId}" title="#{bundle.EditAuditoriaTitle_usuarioId}" required="true" requiredMessage="#{bundle.EditAuditoriaRequiredMessage_usuarioId}">
                        <f:selectItems value="#{usuarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{auditoriaController.update}" value="#{bundle.EditAuditoriaSaveLink}"/>
                <br />
                <br />
                <h:link outcome="View" value="#{bundle.EditAuditoriaViewLink}"/>
                <br />
                <h:commandLink action="#{auditoriaController.prepareList}" value="#{bundle.EditAuditoriaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.EditAuditoriaIndexLink}" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
